# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=quaternion
pkgver=0.0.9.4e_git20200413
pkgrel=0
_commit="a3c9ee0a61d4b1ca89cbd54a29c47fccb3b5c3c8"
pkgdesc="Qt5-based IM client for Matrix"
options="!check" # No testsuite
url="https://github.com/QMatrixClient/Quaternion"
arch="all !armhf" # armhf blocked by qt5-qtmultimedia
license="GPL-3.0-or-later"
depends="qt5-qtquickcontrols2 qt5-qtquickcontrols"
makedepends="cmake qt5-qttools-dev qt5-qtquickcontrols2-dev qt5-qtmultimedia-dev
	qt5-qtkeychain-dev libquotient-dev libsecret-dev"
source="https://github.com/QMatrixClient/Quaternion/archive/$_commit/Quaternion-$_commit.tar.gz"
builddir="$srcdir/Quaternion-$_commit"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib
	make -C build
}

package() {
	DESTDIR="$pkgdir" make -C build install
}

sha512sums="9edbbb44def39c65d265dd6a32df1386de298083f535608fe75af221c6be2d31b28a0740b538aaa7158ba67b4647bf588259694009f59161403356eb37d97793  Quaternion-a3c9ee0a61d4b1ca89cbd54a29c47fccb3b5c3c8.tar.gz"
